//
//  Header.h
//  test
//
//  Created by 朱圳 on 2017/12/14.
//  Copyright © 2017年 朱圳. All rights reserved.
//

#ifndef Header_h
#define Header_h
//弱引用
#define WeakSelf   __weak typeof(self) weakSelf = self;

#define ScreenWidth ([UIScreen mainScreen].bounds.size.width)
#define ScreenHeight ([UIScreen mainScreen].bounds.size.height)
#define Screen_width  ([UIScreen mainScreen].bounds.size.width)
#define Screen_Height  ([UIScreen mainScreen].bounds.size.height)
// 导航栏高度
#define Navigation_Bar_Height (iPhoneX ? 88.f : 64.f)
// 判断是否是iPhone X
#define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
#define dominantColor [UIColor colorWithRed:254/255.0 green:239/255.0 blue:53/255.0 alpha:1.0]
// RGB颜色
#define HWColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
//西瓜红
#define XGColor HWColor(255, 161, 136)
// 随机色
#define HWRandomColor HWColor(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))
/******************    三方库       *************/
#import "Masonry.h"
#import "MJRefresh.h"
#import "WRNavigationBar.h"
#import "YYModel.h"
#import "EasyShowView.h"
#import <SDWebImage/UIImageView+WebCache.h>


/******************    二次封装      *************/
#import "Utility.h"
#import "AFNetworkTool.h"
#import "UIView+Extension.h"
#import "UIBarButtonItem+Extension.h"
#import "XLBaseTableController.h"
#import "UITextField+Limit.h"
#import "MBProgressHUD+MJ.h"
#pragma -mark ——————————工具类————————————————————
#import "KongDataView.h"//空数据view


/******************    网络地址       *************/


//主体请求地址
#define SPLICE(type) [NSString stringWithFormat:@"%@%@",BaseURL,type]
#define BaseURL @"https://www.koubeikc.com/app/public"


//#define BaseURL @"https://www.koubeikc.com/app/public"
//登录
#define Login    SPLICE(@"/login.php/index/login.html")//登录
/******************    学生端地址      *************/
#define Studen_Index      SPLICE(@"/index.php/index/index")//更新
#define Studen_Update       SPLICE(@"/index.php/personal/updatemessage.html")//更新
#define Studen_Order      SPLICE(@"/index.php/index/yueke.html")//约课
#define Studen_Order_list      SPLICE(@"/index.php/index/yklist.html")//约课列表
#define Stu_GR_Order_list      SPLICE(@"/index.php/index/yklists.html")//老师约课列表
#define Stu_GR_Order_update      SPLICE(@"/index.php/index/dispose.html")//学生约课操作接受拒绝
#define Stu_Readylist      SPLICE(@"/index.php/index/readylist.html")//学生上课确定列表
#define Stu_Attendclass    SPLICE(@"/index.php/index/attendclass.html") //学生上课确定操作
#define Stu_Clock    SPLICE(@"/index.php/index/clockstatus.html") //学生打卡
#define Stu_SetClock    SPLICE(@"/index.php/index/setclockstatus.html") //学生打卡操作
#define Stu_UpdateClock    SPLICE(@"/index.php/index/setclock") //学生更新打卡操作
#define Stu_Clockdays    SPLICE(@"/index.php/index/clockdays.html") //学生打卡历史
#define Stu_Evaluate    SPLICE(@"/index.php/evaluate/evaluatelist.html") //学生评价
#define Stu_PostEvaluate    SPLICE(@"/index.php/evaluate/evaluates.html") //学生提交评价
#define Stu_Mounthevaluate    SPLICE(@"/index.php/evaluate/mounthevaluate.html")//学生评价数据
#define Stu_Changepass    SPLICE(@"/index.php/personal/changepass.html")//学生修改密码
#define Stu_Headimg    SPLICE(@"/index.php/personal/headimg.html")//学生修改头像




/******************    研究生端地址      *************/
//研究生约课
#define Graduate_Order      SPLICE(@"/postgraduate.php/index/yueke.html")//约课
#define Student_List      SPLICE(@"/postgraduate.php/index/slist.html")//约课
#define GR_Order_list      SPLICE(@"/postgraduate.php/index/yklist.html")//约课列表
#define GR_Stu_Order_list      SPLICE(@"/postgraduate.php/index/yklists.html")//学生约课列表
#define GR_Stu_Order_update     SPLICE(@"/postgraduate.php/index/dispose.html")//老师约课操作接受拒绝
#define GR_Readylist     SPLICE(@"/postgraduate.php/index/readylist.html") //上课确定列表
#define GR_Attendclass    SPLICE(@"/postgraduate.php/index/attendclass.html") //上课确定操作
//费用管理 /postgraduate.php/Expese/updateexpenses.html
#define GR_OtherFeeSe   SPLICE(@"/postgraduate.php/Expense/otherexpense.html")
//费用提交
#define GR_FeeMagUP   SPLICE(@"/postgraduate.php/Expense/updateexpenses.html")
//课酬未打款列表postgraduate.php/Classmoney/unpaid.html
#define GR_KeCoulist   SPLICE(@"/postgraduate.php/Classmoney/unpaid.html")
//课酬已打款列表
#define GR_KeCouRepay   SPLICE(@"/postgraduate.php/Classmoney/readypay.html")
//重新发送上课确认请求
#define GR_Setclass   SPLICE(@"/postgraduate.php/index/setclass.html")
//研究生修改密码
#define GR_Changepass    SPLICE(@"/postgraduate.php/index/changepass.html")
//研究生修改头像
#define GR_Headimg    SPLICE(@"/postgraduate.php/Index/headimg.html")

/******************    教务端端地址      *************/
//首页
#define JW_HomePage SPLICE(@"/teacher.php/index/gstudent.html")
//首页搜索/teacher.php/index/gstudentsearch.html
#define JW_HomeSearch SPLICE(@"/teacher.php/index/gstudentsearch.html")
//上传研究生身份证明
#define JWUpimage SPLICE(@"/teacher.php/index/upimage.html")

//研究生搜索地址
#define JWSearch_list  SPLICE(@"/teacher.php/index/search.html")
//学生搜索地址
#define JWSDsearch_list SPLICE(@"/teacher.php/index/searchstudent.html")
//学生分类搜索teacher.php/index/fenleistudent.html
#define JWSDsearch_feilei SPLICE(@"/teacher.php/index/fenleistudent.html")

//研究生注册
#define Grduat_Registra  SPLICE(@"/teacher.php/index/addpostgraduate.html")
//研究生修改
#define Grduat_update SPLICE(@"/teacher.php/index/updatepostgraduate.html")
//教务端学生列表信息修改
#define JWteacher_UpdateStudent  SPLICE(@"/teacher.php/index/updatestudent.html")
//教务端未分配学生列表
#define JWteacher_Undistributed  SPLICE(@"/teacher.php/index/undistributed.html")
//教务端上传学生对应研究生分配数据
#define JWteacher_Sdistributed  SPLICE(@"/teacher.php/index/distribution.html")
//教务端学生已分配研究生数据
#define JWteacher_SdistriList  SPLICE(@"/teacher.php/index/distribute.html")
//教务端学生列表信息查看
#define JWteacher_Studentlist  SPLICE(@"/teacher.php/index/studentlist.html")
//教务端研究生列表信息
#define  JWteacher_ChangeGR SPLICE(@"/teacher.php/index/graduatelist.html")
//教务端查看研究生带的学员
#define JW_LookGRSt SPLICE(@"/teacher.php/index/graduatestlist.html")
//教务查看研究生图片
#define JW_SeeGRPic SPLICE(@"/teacher.php/Upimg/gpiclist.html")

//教务端提交其他费用接口
#define JWteacher_GRotherFee SPLICE(@"/teacher.php/Othermoney/expenses.html")
//教务端获取其他费用列表
#define JWteacher_GROthFeelist SPLICE(@"/teacher.php/Othermoney/expenseslist.html")
//教务端其他费用处理接口
#define JWteacher_GROthDealFee SPLICE(@"/teacher.php/Othermoney/updateexpenses.html")
//教务端其他费用拒绝/修改接口
#define JWteacher_GROtUpRefused SPLICE(@"/teacher.php/Othermoney/againexpenses.html")

//教务修改信息
#define JWteacher_Change  SPLICE(@"/teacher.php/index/updateinfo.html")
//教务查看评价
#define JW_Mounthevaluate    SPLICE(@"/teacher.php/evaluate/mounthevaluate.html")
//教务查看具体评价内容
#define JW_whichevaluate    SPLICE(@"/teacher.php/evaluate/whichevaluate.html")
//教务未打款课酬信息/teacher.php/Classmoney/glist.html
#define JW_KeCou SPLICE(@"/teacher.php/Classmoney/glist.html")
//教务上传课酬截图/index.php/personal/updateimg.html
#define JW_KCUppict SPLICE(@"/teacher.php/Classmoney/setmoney.html")

//教务已打款信息 /teacher.php/Classmoney/readypay.html
#define JW_KCRepay SPLICE(@"/teacher.php/Classmoney/readypay.html")
//教务加载打款截图
#define ImageBaseURL @"https://www.koubeikc.com/app/public/static/images/"

//教务上传研究生身份证明/teacher.php/Upimg/papers.html-old
#define JW_UPGRID SPLICE(@"/teacher.php/Upimg/graduatepic.html")
//教务端查看学生打卡历史
#define JW_Clockdays    SPLICE(@"/teacher.php/card/clockdays.html")
//教务端查看学生具体打卡
#define JW_Clockstatus    SPLICE(@"/teacher.php/card/clockstatus.html")
//教务端处理打卡
#define JW_Setcard    SPLICE(@"/teacher.php/card/setcard.html")
//教务端修改密码
#define JW_Changepass    SPLICE(@"/teacher.php/index/changepass.html")
//教务端修改头像
#define JW_Headimg    SPLICE(@"/teacher.php/Upimg/headimg.html")
//教务端学生交接情况
#define JW_HandOver     SPLICE(@"/teacher.php/Jiaojie/index.html")
//教务端修改学生交接情况
#define JW_ChangeHandOver    SPLICE(@"/teacher.php/Jiaojie/seting.html")

#endif /* Header_h */

/******************    学生的ID-密码       *************/
#define Sid  [[NSUserDefaults standardUserDefaults] objectForKey:@"sid"]
#define Spassword  [[NSUserDefaults standardUserDefaults] objectForKey:@"spassword"]
#define Days [[NSUserDefaults standardUserDefaults] objectForKey:@"days"]

#define CountDowns [[NSUserDefaults standardUserDefaults] objectForKey:@"countdown"]

/******************    研究生的ID-密码       *************/
#define Gid  [[NSUserDefaults standardUserDefaults] objectForKey:@"gid"]
#define Gpassword  [[NSUserDefaults standardUserDefaults] objectForKey:@"gpassword"]
/******************    教务的ID-密码       *************/
#define JWid  [[NSUserDefaults standardUserDefaults] objectForKey:@"jwID"]
#define JWpassword  [[NSUserDefaults standardUserDefaults] objectForKey:@"jwPassword"]

